
#######################################################################################
#
#    File: user_agent_lib
#    Part of stage1st-cheater
#    Home: http://stage1st-cheater.googlecode.com                            
#                                                                                     
#    The MIT License                                                                  
#
#    Copyright (c) 2010-2011 <araya.akashic@gmail.com>
#
#    Permission is hereby granted, free of charge, to any person obtaining a copy
#    of this software and associated documentation files (the "Software"), to deal
#    in the Software without restriction, including without limitation the rights
#    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell        
#    copies of the Software, and to permit persons to whom the Software is            
#    furnished to do so, subject to the following conditions:                         
#                                                                                     
#    The above copyright notice and this permission notice shall be included in       
#    all copies or substantial portions of the Software.                              
#                                                                                     
#    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR       
#    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,         
#    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE      
#    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER           
#    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,    
#    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN        
#    THE SOFTWARE.                                                                    
#                                                                                     
#######################################################################################
'''
Created on Otc 24, 2014

@author: elsesky
'''
import random

UA_RUANMEI = ["/thread-342034-1-1.html",
"/thread-1062403-1-1.html",
"/thread-1011510-1-1.html",
"/thread-998074-1-1.html",
"/thread-891158-1-1.html"]

UA_PCSHUMA = ["/thread-793032-1-1.html",
"/thread-800635-1-1.html",
"/thread-1067875-1-1.html",
"/thread-1067735-1-1.html"]

UA_SAO = ["/thread-657274-1-1.html",
"/thread-735291-1-1.html",
"/thread-1047513-1-1.html",
"/thread-786075-1-1.html",
"/thread-979000-1-1.html",
"/thread-1020839-1-1.html"]

UA_NEIYE = ["/thread-296694-1-1.html",
"/thread-1052245-1-1.html",
"/thread-743001-1-1.html"]

UA_MAOGOU = ["/forum-101-1.html",
"/thread-842598-1-1.html",
"/thread-1011849-1-1.html",
"/thread-1041181-1-1.html",
"/thread-604177-1-1.html"]

UA_tabs = [UA_RUANMEI, UA_PCSHUMA, UA_SAO, UA_NEIYE, UA_MAOGOU]


def get_random_url():
    random.seed()
    i = random.randrange(0, len(UA_tabs) - 1)
#    print i
    ua_tab = UA_tabs[i]
#    print len(ua_tab)
    j = random.randint(0, len(ua_tab) - 1)
#    print j
    return ua_tab[j]

if __name__ == "__main__":
    print get_random_url()

